/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: wwy
 * Date: 2024-11-10
 * Time: 14:31
 */
public class Test2 {
    public static void main(String[] args) {
        int c = 0;
        for (int i = 0; i < 100; i++) {
            if (i % 10 == 9) {
                c++;
            }
            if (i / 10 == 9) {
                c++;
            }
        }
        System.out.println(c);
    }
}
